package com.pmcc.cj.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pmcc.core.entity.UUIDEntity;
import com.pmcc.utils.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 培训表
 * Created by tomas on 2020/9/5.
 */
@Entity
@Table(name = "cj_train")
public class CjTrain extends UUIDEntity {
    @Column(name = "title_train")
    private String titleTrain;//培训标题
    @Column(name = "address")
    private String address;//培训地点
    @Column(name = "content")
    private String content;//培训内容
    @Column(name = "train_time")
    private Date trainTime;//培训时间
    @Column(name = "teacher")
    private String teacher;//教员名字
    @Column(name = "telephone")
    private String telephone;//联系方式

    @Column(name = "create_time")
    private Date createTime;//创建时间

    @Column(name = "day")
    private Integer day;//预计天数

    @Column(name = "end_time")
    private Date endTime;//培训结束时间


    //培训信息状态 0:待培训  1：培训中   2：已培训
    @Column(name = "fettle")
    private Integer fettle;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getTrainTime() {
        return trainTime;
    }

    public void setTrainTime(Date trainTime) {
        this.trainTime = trainTime;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getFettle() {
        return fettle;
    }

    public void setFettle(Integer fettle) {
        this.fettle = fettle;
    }

    public String getTitleTrain() {
        return titleTrain;
    }

    public void setTitleTrain(String titleTrain) {
        this.titleTrain = titleTrain;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }
}
